<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@	taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>考试试卷展示</title>
	<!-- 引入外部CSS -->
	<link rel="stylesheet" type="text/css" href="${baseURI}resources/easyui/themes/metro-green/easyui.css" />
	<link rel="stylesheet" type="text/css" href="${baseURI}resources/easyui/themes/icon.css" />
	<!-- 引入外部JS -->
	<script type="text/javascript" src="${baseURI}resources/easyui/jquery.min.js"></script>
	<script type="text/javascript" src="${baseURI}resources/easyui/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="${baseURI}resources/js/common.js"></script>
	<script type="text/javascript" src="${baseURI}resources/js/myeasyui.js"></script>
</head>

<body>
<form id="paper_questions" method="post">
	<input type="hidden" name="paperId" value="${paperId}" />
	<!-- 循环生成表格 -->
	<table class="question" style="width: 100%; border-collapse: collapse; margin-top: 10px;">
		<thead style="text-align: center; font-size: 16px;">
			<tr style="border-bottom: 1px solid;">
				<th>问答题列表</th>
				<th>打分</th>
			</tr>
		</thead>
		<tbody style="font-size: 15px;">
			<c:forEach items="${questionContents}" var="content" varStatus="status">
				<tr>
					<td style="color: darkgreen;">${status.count} : ${content}</td>
					<td rowspan="2" style="text-align: center;border-bottom: 1px solid;">
						<input name="score" class="easyui-numberbox" data-options="required:true" />
					</td>
				</tr>
				<tr>
					<td style="border-bottom: 1px solid;">${questionAnswers.get(status.index)}</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
</form>
</body>
</html>